package com.peak.distribution.web.validator;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ValidateRule {

	/** 校验的属性名称 */
	private String proptertyName;
	
	/** 校验的属性标题，会带入到错误信息中 */
	private String proptertyTitle;
	
	/** 需要校验的方法 */
	private List<Class<? extends ValidateRuleMethod>> methods = Lists.newArrayList();
	
	/** 校验方法的参数 */
	private Map<Class<? extends ValidateRuleMethod>, Map<String, Object>> methodParam = Maps.newHashMap();

	public ValidateRule(String proptertyName, String proptertyTitle) {
		super();
		this.proptertyName = proptertyName;
		this.proptertyTitle = proptertyTitle;
	}

	public ValidateRule() {
		super();
	}
}
